#include <iostream>
using namespace std;

int main()
{
  unsigned int solution = 1;
  for(int i = 3; i < 1002; i += 2)
  {
    solution += (4 * (i*i + (i*i - 3*(i-1)))/2);
  }
  cout << solution << endl;
  return 0;
}
